package com.ilop.sthome.mvp.contract.device;

import com.example.common.mvp.IBasePresenter;
import com.example.common.mvp.IBaseView;
import com.ilop.sthome.data.greenDao.RoomBean;

import java.util.List;

/**
 * @author skygge
 * @date 2020/5/12.
 * GitHub：javofxu@github.com
 * email：skygge@yeah.net
 * description：
 */
public interface RoomManageContract {

    interface IView extends IBaseView{

        void showIsModifyRoom();

        void showCurrentRoom(int position);

        void showToastMsg(String msg);

        void bindSuccess();
    }

    interface IPresent extends IBasePresenter<IView>{

        void refreshUI(String deviceName, int deviceId);

        void onSaveChange();

        /**
         * 获取房间昵称
         */
        void getRoomListByAccount();

        /**
         * 获取修改房间时当前的房间
         */
        void getCurrentRoom(List<RoomBean> mList);

        /**
         * 获取选中的房间
         */
        void setSelectRoom(RoomBean mRoom, int position);

        /**
         * 修改网关房间
         */
        void modifyGatewayRoom();

        /**
         * 修改子设备房间
         */
        void modifySubDeviceRoom();

        /**
         * 修改摄像头房间
         */
        void modifyCameraRoom();

        /**
         * 修改成功
         */
        void modifySuccess(String roomId);

        void modifyCameraSuccess(RoomBean roomBean);
    }
}
